<ion-view view-title="发布消息" class="xg-percar-publish" ng-controller="newsBlackBoardAddCtrl">
  <ion-nav-buttons side="left">
    <a class="ion-ios-arrow-back" href="#/newsBlackBoard"></a>
  </ion-nav-buttons>
  <ion-content class="xg-percar-publish-content">
    <div class="list">
      <ng-form name="newsForm">
        <label class="item item-input item-stacked-label">
          <span class="input-label">题目</span>
          <input type="text" placeholder="消息标题 不超过15字" required ng-maxlength="15" ng-model="news.topic"></input>
        </label>
        <div class="item item-input item-select">
          <div class="input-label">
            重要性
          </div>
          <select ng-options="value.name for value in values" ng-model="selectedValue" required>

          </select>
        </div>
        <label class="item item-input item-stacked-label">
          <span class="input-label">擦除日期</span>
          <input type="date"  required ng-model="news.expireDate">
        </label>
        <label class="item item-input item-stacked-label">
          <span class="input-label">详细内容</span>
          <textarea placeholder="请在此写下详细内容,不少于10个字" required ng-minlength="10" ng-model="news.content"></textarea>
        </label>
        <button class="button button-full xg-car-detail-btn" ng-click="submit()" ng-disabled="newsForm.$invalid">
          提交
        </button>
      </ng-form>
    </div>
  </ion-content>
</ion-view>
